package com.duesoft.myandroid.fragments;

import com.duesoft.myandroid.R;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

public class PictureFragment extends Fragment {

	public static final String ARG_TEXT = "com.duesoft.myandroid.fragments.PictureFragment.ARG_TEXT";

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceBundle) {
		View view = inflater.inflate(R.layout.picture_view, container, false);
		
		if (savedInstanceBundle != null) {
			
			String text = savedInstanceBundle.getString(PictureFragment.ARG_TEXT);
			
			EditText editText = (EditText)view.findViewById(R.id.editTextPicture);
			editText.setText(text);	
		}		
		
		return view;
	}
	
	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
	}
	
	
}
